package cn.itsource.org.mapper;

import cn.itsource.basic.mapper.BaseMapper;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

/**
 * Department mapper要实现crud，分页
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    //1 继承基础的接口方法
    //2 扩展自己额外的接口方法
    //批量移除
    void bulkRemove(List<Long> ids);

    //加载部门树
    List<Department> loadDeptTree();
}
